package com.ourteam.system.dao;

import net.dao.IDataAccessInterface;


/**
 * Template Name : DAO接口模板
 * Template Version : 1
 * Template Last Modfiy Date : Thu Sep 21 11:14:14 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:18
  * Warning ! This file will be overwrite when regenerate !
  *
 */
public interface IBaseSysRoleGroupDAO extends IDataAccessInterface<SysRoleGroup, SysRoleGroupDAOQueryBean> {
    /**
        *  Mapped Entity Name
        */
    static final String EntityName = "SYS_ROLE";

    /**
     * Mapped Field ID
    */
    static final String Id = "SYS_ROLE.ID";

    /**
     * Mapped Field REMARKS
    */
    static final String Remarks = "SYS_ROLE.REMARKS";

    /**
     * Mapped Field ROLE_CODE
    */
    static final String RoleCode = "SYS_ROLE.ROLE_CODE";

    /**
     * Mapped Field ROLE_NAME
    */
    static final String RoleName = "SYS_ROLE.ROLE_NAME";

    /**
     * Mapped Field ROLE_TYPE
    */
    static final String RoleType = "SYS_ROLE.ROLE_TYPE";

    /**
     * Mapped Field STATUS
    */
    static final String Status = "SYS_ROLE.STATUS";

    /**
     * Mapped Field DEFAULT_FLAG
    */
    static final String DefaultFlag = "SYS_ROLE.DEFAULT_FLAG";

    /**
     * Mapped Field MODIFY_TIME
    */
    static final String ModifyTime = "SYS_ROLE.MODIFY_TIME";

    /**
     * Mapped Field OPERATOR_ID
    */
    static final String OperatorId = "SYS_ROLE.OPERATOR_ID";

    /**
     * Mapped Attribute operatorName
    */
    static final String OperatorName = org.apache.commons.lang.StringUtils.replace(com.ourteam.system.dao.ISysUserDAO.UserName,
            com.ourteam.system.dao.ISysUserDAO.EntityName + ".",
            "operator_user.");

    /**
     * Delete Data
     * @param final long id
     * @throws Exception
     */
    void delete(final long id) throws Exception;

    /**
         * Find Data By Primary Key
         * @param  final long id
         * @throws Exception
         */
    SysRoleGroup findById(final long id) throws Exception;

    /**
         * Query Related SysRoleRelate
         * @param aQueryBean
         * @throws Exception
         */
    com.ourteam.system.dao.SysRoleRelate[] querySysRoleRelate(
        final SysRoleGroupDAOQueryBean queryBean) throws Exception;

    /**
         * Query Related SysRoleRelate Selective
         * @param queryBean
         * @throws Exception
         */
    java.util.Map<String, Object>[] querySysRoleRelateSelective(
        final SysRoleGroupDAOQueryBean queryBean) throws Exception;

    /**
         * Update Related SysRoleRelate
         * @param aSysRoleRelate
         * @param queryBean
         * @throws Exception
         */
    void updateSysRoleRelate(
        final com.ourteam.system.dao.SysRoleRelate aSysRoleRelate,
        SysRoleGroupDAOQueryBean queryBean) throws Exception;

    /**
         * Delete Related SysRoleRelate
         * @param queryBean
         * @throws Exception
         */
    void deleteSysRoleRelate(final SysRoleGroupDAOQueryBean queryBean)
        throws Exception;

    static public interface DataProperty {
        /**
         * Attribute defaultFlag
         */
        static final String DefaultFlag = "defaultFlag";

        /**
         * Attribute modifyTime
         */
        static final String ModifyTime = "modifyTime";

        /**
         * Attribute operatorId
         */
        static final String OperatorId = "operatorId";

        /**
         * Attribute operatorName
         */
        static final String OperatorName = "operatorName";

        /**
         * Attribute id
         */
        static final String Id = "id";

        /**
         * Attribute remarks
         */
        static final String Remarks = "remarks";

        /**
         * Attribute roleCode
         */
        static final String RoleCode = "roleCode";

        /**
         * Attribute roleName
         */
        static final String RoleName = "roleName";

        /**
         * Attribute roleType
         */
        static final String RoleType = "roleType";

        /**
         * Attribute status
         */
        static final String Status = "status";
    }

    static public interface _DataObjectProperty extends DataProperty {
    }
}
